package com.violet.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "spring.task.execution.pool")
public class ExecutorProperties {
    private int coreSize;           // 线程池核心线程数
    private int maxSize;            // 线程池最大线程数
    private int keepAliveTime;      // 线程池线程空闲时间
    private int queueCapacity;      // 线程池任务队列容量
}
